package com.bawei.java.jvm;

/**
 * @Author : yaotianxue
 * @Time : On 2023/5/29 09:27
 * @Description : Test
 */
public class Test {
    public static void main(String[] args){
//       new Test().a();
        String str1 = "abc";
        String str2 = "abc";
        String str3 = new String("abc");
        System.out.println(str1==str2);
        System.out.println(str2==str3);

        //类加载器：启动类加载器---》扩展类加载器---》系统类加载器
        ClassLoader appClassLoader = ClassLoader.getSystemClassLoader();
        ClassLoader extClassloader = appClassLoader.getParent();
        ClassLoader bootstrapLoader = extClassloader.getParent();
        System.out.println("the bootstrapLoader : " + bootstrapLoader);
        System.out.println("the extClassloader : " + extClassloader);
        System.out.println("the appClassLoader : " + appClassLoader);



    }

    public void a(){
        a();
    }
}
